#include <iostream>

int main()
{
    double delt = 0;
    int k;
    while(std::cin>>k)
    {
        int i = 0;
        delt = k;
        while(delt >= 0)
        {
            i++;
            delt -= 1.0/i;
        }
        std::cout<<i<<std::endl;
    }
    return 0;
}